package indi.zhifa.engine.core.common.entity.mpe;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 纯粹的基础po
 */
@Data
public class PureBaseEntity {
    @Schema(title = "主键")
    @TableId(type = IdType.ASSIGN_ID)
    protected Long id;


    public void createInit() {
        id = IdWorker.getId();
    }

    public void updateInit() {

    }
}
